package besuper;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "BeSuper")
@XmlAccessorType(XmlAccessType.FIELD)

public class BeSuper {
	
	@XmlElementWrapper(name = "players")
	@XmlElement(name = "player")
	private List<Player> players;
	
	@XmlElementWrapper(name = "questions")
	@XmlElement(name = "question")
	private List<Question> questions;
	
	private Player currentPlayer;
	
	
	public BeSuper() {
			players = new ArrayList<Player>();
			questions = new ArrayList<Question>();
	}
	
	public List<Player> getPlayers() {
		return players;
	}

	public void addPlayers(Player player) {
		this.players.add(player);
	}

	public List<Question> getQuestions() {
		
		return questions;
	}

	public void addQuestions(Question question) {
		this.questions.add(question);
	}

	public Player getCurrentPlayer() {
		return currentPlayer;
	}

	public void setCurrentPlayer(Player currentPlayer) {
		this.currentPlayer = currentPlayer;
	}



}
